Problem Note 44901: LSMEANS DIFF option may terminate SAS if formatted CLASS variables have long lengths
If you specify the DIFF option in the LSMEANS statement, and if you have one or more CLASS variables that are formatted and whose lengths sufficiently exceed the lengths of their formats, then SAS might terminate. However, the DIFF=ANOM option does not cause this problem. The affected procedures are listed in the About tab of this problem note.
The problem can be avoided by removing the DIFF option, or by removing the LSMEANS statement altogether. You may be able to retain the LSMEANS statement and DIFF option if you disassociate formats from the CLASS variables, or for variables with long lengths, replace them with variables with short lengths.
If you associate formats with variables by including FORMAT statements in your procedure code, you can simply remove the FORMAT statements to disassociate the formats from the variables. If the formats were associated with variables when creating or modifying the data set (this can be checked by running PROC CONTENTS on the data set), you can disassociate formats from variables by using a FORMAT statement that lists variables but no format. For example, these statements use PROC DATASETS to remove the format associated with variable X from the data set WORK.MYDATA:
proc datasets;
modify mydata;
format x;
run;
Operating System and Release Information
SAS System | SAS/STAT | z/OS | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows XP 64-bit Edition | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft® Windows® for x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Datacenter Edition | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Standard Edition | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2003 for x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2008 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows Server 2008 for x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Microsoft Windows XP Professional | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Enterprise 32 bit | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Enterprise x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Home Premium 32 bit | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Home Premium x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Professional 32 bit | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Professional x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Ultimate 32 bit | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows 7 Ultimate x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows Vista | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Windows Vista for x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
64-bit Enabled AIX | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
64-bit Enabled HP-UX | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
64-bit Enabled Solaris | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
HP-UX IPF | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Linux | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Linux for x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
OpenVMS on HP Integrity | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
Solaris for x64 | 9.22 | 12.1 | 9.2 TS2M3 | 9.3 TS1M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Topic: | SAS Reference ==> Procedures ==> GENMOD SAS Reference ==> Procedures ==> LOGISTIC SAS Reference ==> Procedures ==> ORTHOREG SAS Reference ==> Procedures ==> PHREG SAS Reference ==> Procedures ==> PLM SAS Reference ==> Procedures ==> SURVEYLOGISTIC SAS Reference ==> Procedures ==> SURVEYPHREG SAS Reference ==> Procedures ==> SURVEYREG
|
Date Modified: | 2011-11-16 14:38:50 |
Date Created: | 2011-11-16 12:44:24 |